package cn.shentianlan.dao;

import cn.shentianlan.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    //查询数据库中是否存在用户数据
    int getUserNumber();

    User selectUserById(String gd_id);

    User selectUser(@Param("gd_id") String gd_id,@Param("gd_password") String gd_password);

    void insertUser(User user);

    List<User> selectUsers(@Param("start") int start,@Param("length") int length);
    int queryUserCount();

    List<User> selectUserBySearch(@Param("searchValue") String searchValue,@Param("length") int length,@Param("start") int start);

    int queryUserCountBySearch(@Param("searchValue") String searchValue);

    void deleteUserById(String gd_id);

    void updateUser(User user);
}
